]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
data: Register switch-to-application shortcuts with g-c-c
authorFlorian Müllner <fmuellner@gnome.org>
Wed, 7 Apr 2021 19:18:39 +0000 (21:18 +0200)
committerMarge Bot <marge-bot@gnome.org>
Mon, 5 Jul 2021 18:46:08 +0000 (18:46 +0000)
The <super>1-9 shortcuts to activate dash favorites were a feature
from Ubuntu's Unity that caused some distress as the same shortcuts
were used by some users to activate workspaces.

Registering the new shortcuts with control-center at least gives
those users a GUI option for resolving the conflict.

https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/1250

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1797>

data/50-gnome-shell-launchers.xml [new file with mode: 0644]
data/meson.build
po/POTFILES.in

diff --git a/data/50-gnome-shell-launchers.xml b/data/50-gnome-shell-launchers.xml
new file mode 100644 (file)
index 0000000..ca57ee6
--- /dev/null
@@ -0,0 +1,45 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<KeyListEntries schema="org.gnome.shell.keybindings"
+                group="system"
+                name="Launchers"
+                wm_name="GNOME Shell"
+                package="gnome-shell">
+
+       <KeyListEntry name="switch-to-application-1"
+                      description="Activate favorite application 1"
+                      hidden="true"/>
+
+       <KeyListEntry name="switch-to-application-2"
+                      description="Activate favorite application 2"
+                      hidden="true"/>
+
+       <KeyListEntry name="switch-to-application-3"
+                      description="Activate favorite application 3"
+                      hidden="true"/>
+
+       <KeyListEntry name="switch-to-application-4"
+                      description="Activate favorite application 4"
+                      hidden="true"/>
+
+       <KeyListEntry name="switch-to-application-5"
+                      description="Activate favorite application 5"
+                      hidden="true"/>
+
+       <KeyListEntry name="switch-to-application-6"
+                      description="Activate favorite application 6"
+                      hidden="true"/>
+
+       <KeyListEntry name="switch-to-application-7"
+                      description="Activate favorite application 7"
+                      hidden="true"/>
+
+       <KeyListEntry name="switch-to-application-8"
+                      description="Activate favorite application 8"
+                      hidden="true"/>
+
+       <KeyListEntry name="switch-to-application-9"
+                      description="Activate favorite application 9"
+                      hidden="true"/>
+
+</KeyListEntries>
+
index b731f5a8dd19cc36c3ea79a6468707a501403077..f924fdf8061a26ad62863b4cc91fc75681cf667c 100644 (file)
@@ -73,9 +73,13 @@ configure_file(
   install_dir: pkgdatadir
 )
 
+keybinding_files = [
+  '50-gnome-shell-launchers.xml',
+  '50-gnome-shell-system.xml',
+]
 
 install_data('gnome-shell.portal', install_dir: portaldir)
-install_data('50-gnome-shell-system.xml', install_dir: keysdir)
+install_data(keybinding_files, install_dir: keysdir)
 
 
 schemaconf = configuration_data()
index cb279c1ee56779f2e3e9dea6bbfddb716b9be210..f96d796666316e70a99383a8de68e846d3f3386e 100644 (file)
@@ -1,5 +1,6 @@
 # List of source files containing translatable strings.
 # Please keep this file sorted alphabetically.
+data/50-gnome-shell-launchers.xml
 data/50-gnome-shell-system.xml
 data/org.gnome.Shell.desktop.in.in
 data/org.gnome.shell.gschema.xml.in